package com.noah.common.utility;

import cn.hutool.core.io.watch.WatchMonitor;

import java.io.File;
import java.nio.file.Path;
import java.nio.file.WatchEvent;

/**
 * 文件的变化或目录的变动，包括文件的创建、修改、删除以及目录下文件的创建、修改和删除
 * @author noah
 * 2023/9/4 19:33
 */
public class WatchMonitorUtility extends WatchMonitor {
    public WatchMonitorUtility(File file, WatchEvent.Kind<?>... events) {
        super(file, events);
    }

    public WatchMonitorUtility(String path, WatchEvent.Kind<?>... events) {
        super(path, events);
    }

    public WatchMonitorUtility(Path path, WatchEvent.Kind<?>... events) {
        super(path, events);
    }

    public WatchMonitorUtility(Path path, int maxDepth, WatchEvent.Kind<?>... events) {
        super(path, maxDepth, events);
    }
}
